package com.lagou.domin;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {

    private static final long serialVersionUID = -6512285782279014205L;
    private int id;
    private String name;
    private String sex;
    private Date birth;

    public Student(){

    }

    public Student(int id, String name, String sex, Date birth) {
        setId(id);
        setName(name);
        setSex(sex);
        setBirth(birth);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
